5d2fec5396471734e8c1d2ef798652279961fde3,components/camel-restlet/src/test/java/org/apache/camel/component/restlet/RestletRouteBuilderTest.java,RestletRouteBuilderTest,testProducerJSONFailure,#,108

Before Change



    @Test
    public void testProducerJSONFailure() throws IOException {
        String response = (String)template.sendBodyAndHeader(
            "restlet:http://localhost:" + portNum + "/ordersJSON?restletMethod=post&foo=bar", 
            ExchangePattern.InOut,
            "{'JSON'}",
            Exchange.CONTENT_TYPE,
            MediaType.APPLICATION_JSON);
           
        assertEquals("{'JSON'}", response);
    }

After Change



    @Test
    public void testProducerJSONFailure() throws IOException {
        String response = template.requestBodyAndHeader(
            "restlet:http://localhost:" + portNum + "/ordersJSON?restletMethod=post&foo=bar", 
            "{'JSON'}",
            Exchange.CONTENT_TYPE,
            MediaType.APPLICATION_JSON, String.class);
           
        assertEquals("{'JSON'}", response);
    }